// 微信付款
<template>
  <div class="QrCode">
    <div class="qrborder">
      <h1>微信扫码支付</h1>
      <h3>支付金额：￥{{ price }}</h3>
      <img class="jiantou" src="@/assets/images/weixinjiantou.png">
      <div class="myimage">
        <div class="content-left">
          <div>
            <img :src="img" class="er">
            <h4>吉林文德孚科技有限公司</h4> 
          </div>
          <p>二维码有效时长为2小时，情尽快支付！</p> 
        </div>
        
        <div class="content-right">
          <img class="pho" src="@/assets/images/weixin.png">
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: 'QrCode',
  data() {
    return{
      img: null,
      price: null,
    }
  },
  created() {
    this.img = this.$store.state.qrcode
    this.price = this.$store.state.orderPrice
    console.log(this.$store.state.orderPrice)
  }
}
</script>
<style lang="scss" scoped>
.QrCode{
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, .8);
  padding-top: 140px;
  .qrborder{
    width: 860px;
    height: 500px;
    margin: auto;
    background-color: #fff;
    position: relative;
    .jiantou{
      position: absolute;
      top: 103px;
      left: 327px;
    }
    h1{
      text-align: center;
      color: rgb(119, 119, 119);
      padding-top: 20px;
    }
    h3{
      text-align: center;
      color: #fba22e;
    }
    .myimage{
      width: 100%;
      display: flex;
      flex-direction: row;
      align-items: center;
      .content-left{
        margin-left: 88px;
        div{
          width: 250px;
          border: 1px solid rgb(230, 227, 227);
          img{
            display: block;
            width: 220px;
            margin-left: 12px;
            margin-top: 20px;
            border: 3px solid red;
            
          }
          h4{
            // width: 220px;
            text-align: center;
            line-height: 60px;
          }
        }
        p{
          color: #fba22e;
          text-align: center;
          line-height: 40px;
          font-size: 12px;
        }
      }
      .content-right{
        margin-left: 128px;
      }
    }
  }
}
</style>


